//
//  NvMakeFilmClipModel.h
//  NvSellerShow
//
//  Created by Meicam on 2017/2/9.
//  Copyright © 2017年 Meicam. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NvsVideoClip.h"
#import "UIKit+Ext.h"
#import "NvTransitionsModel.h"

typedef NS_ENUM(NSInteger, NvClipType) {
    NvClipNone = 0,
    NvClipVideo,
    NvClipImage
};

typedef NS_ENUM(NSInteger, NvMakeFilmClipModelType) {
    //have no real clip
    NvMakeFilmClipModelOrigin = 0,
    //have clip
    NvMakeFilmClipModelAdded

};

@interface NvMakeFilmClipModel : NSObject<NSCopying>

@property (nonatomic, assign)NvClipType clipType;
@property (nonatomic, assign)NvMakeFilmClipModelType modelType;

@property (nonatomic, assign) NSInteger orderId;
@property (nonatomic, copy) NSString *clipTitle;
@property (nonatomic, copy) NSString *clipPath;
@property (nonatomic, strong) UIImage *clipThumb;
@property (nonatomic, copy) NSString *clipCaption;
@property (nonatomic, copy) NSString *captionStyleId;

@property (nonatomic, copy) NSString *stickerPackageId;

//video
@property(nonatomic, strong) NSNumber *triminTimeStamp;
@property(nonatomic, strong) NSNumber *trimoutTimeStamp;
//audio
@property(nonatomic, strong) NSNumber *audioVolumn;
//image
@property(nonatomic, strong) NSNumber *imageDuration;

@property(nonatomic, strong) NvsVideoClip *NvsClip;

//字幕 贴纸(水印)
@property (nonatomic, strong) NSString *captionOffset;
@property (nonatomic, strong) NSString *stickerOffset;

@property (nonatomic, strong) NSString *captionScale;
@property (nonatomic, strong) NSString *stickerScale;

//滤镜
@property (nonatomic, strong) NSString *videoFx;
//视频播放速度
@property (nonatomic, strong) NSNumber *videoSpeed;

//pan
@property(nonatomic, strong) NSNumber *pan;
//scan
@property(nonatomic, strong) NSNumber *scan;

//转场效果
@property(nonatomic, strong)NvTransitionsModel *transitionModel;

- (void)reset;

- (id)initWithTitle:(NSString *)title;

- (id)initWithDraftClip:(NSDictionary *)clipDic;

- (NSDictionary *)getDraftClipDictionary;

@end
